package com.project.thisDatabase.base;

import java.lang.reflect.Type;
import java.sql.SQLException;
import java.util.List;

public interface DbExecutorBase {

    <T> List<T> search(String sql, List params, Class cls) throws SQLException;
    <T> List<T> search(String sql, List params, Type tp) throws SQLException;

    int update(String sql, List params) throws SQLException;

    int insert(String sql, List params) throws SQLException;

    int delete(String sql, List params) throws SQLException;

}
